package com.example.observepattern.subject.impl;

import com.example.observepattern.observer.Observer;

public class EmailAlertService  implements Observer {
    @Override
    public void update(float temperature, float humidity, float pressure) {
        if (temperature > 28.0f) {
            System.out.println("📧 邮件服务发送：高温预警！当前温度 " + temperature + "°C，请注意防暑！");
        }
    }
}
